package org.uni_hi.lsep.gui.util;

import java.awt.Point;

public class PointEx extends java.awt.Point {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2063918734276158892L;

	
	public static Point getMovement(Point start, Point stop){
		Point result=new Point();
		result.setLocation(start.getX()-stop.getX(),start.getY()-stop.getY());
		return result;
	}
	
	public static Point getNewPosition(Point comp, Point move){
		Point  result=new Point();
		result.setLocation(comp.getX()-move.getX(),comp.getY()-move.getY());
		return result;
	}
}
